import React, { FC } from "react"
import { useNavigate, Link } from "react-router-dom"
import { Button, Typography } from "antd"
import { MANAGE_INDEX_PATHNAME } from "../router"

const { Title, Paragraph } = Typography

const Home: FC = () => {
  // const nav = useNavigate()

  // function clickHandler() {
  //   nav({
  //     pathname: "/login",
  //     search: "b=21",
  //   })
  // }
  return (
    <div>
      <div>
        <Title>问卷调查 | 在线投票</Title>
        <Paragraph>已累计创建问卷100份，发布问卷90份，收到问卷980份</Paragraph>
        <div>
          <Button type="primary" onClick={()=>{}}>
            开始使用
          </Button>
        </div>
      </div>
    </div>
  )
}
export default Home
